import request from '@/utils/request'

// 执行AdeLab
export function executeRagLab(id) {
  return request({
    url: '/ade/raglab/execute/' + id,
    method: 'put'
  })
}

// 查询Ade Rag Lab列表
export function listRaglab(query) {
  return request({
    url: '/ade/raglab/list',
    method: 'get',
    params: query
  })
}

// 查询Ade Rag Lab详细
export function getRaglab(id) {
  return request({
    url: '/ade/raglab/' + id,
    method: 'get'
  })
}

// 新增Ade Rag Lab
export function addRaglab(data) {
  return request({
    url: '/ade/raglab',
    method: 'post',
    data: data
  })
}

// 修改Ade Rag Lab
export function updateRaglab(data) {
  return request({
    url: '/ade/raglab',
    method: 'put',
    data: data
  })
}

// 删除Ade Rag Lab
export function delRaglab(id) {
  return request({
    url: '/ade/raglab/' + id,
    method: 'delete'
  })
}
